package Action;

import HLLib.base.HLAppConfig;
import HLLib.handfere.HLUser;
import HLSubScreen.HLSubScreenManager;
import HLSubScreen.ScreenMain;

public class HLGoOhterHomePage {
    int uid;

    String name = "δ֪";

    public HLGoOhterHomePage(int uid, String name) {
        this.uid = uid;
        this.name = name;
    }

    // public HLGoOhterHomePage(int uid) {
    // this.uid = uid;
    // }

    public void Action() {
        if (HLAppConfig.user.uid != uid) {
            HLUser otherUser = new HLUser();
            otherUser.uid = uid;
            otherUser.nickName = name;
            // otherUser.id =uid;
            ScreenMain.screenMain.GoOhterHomePage(otherUser);
        } else {
            ScreenMain.screenMain.ChangeToSubScreenReady(0);
        }
        HLSubScreenManager.uiRootTop.Clear();
        HLSubScreenManager.uiRoot.enable = true;
    }

}
